#include <stdio.h>
#include <math.h>
#include <stdlib.h>

int main()
{
	unsigned int line;
	printf("which line? ");
	scanf("%d", &line);

	FILE *fp_tmp = fopen("index.txt", "r");
	char buf[256];
	for(int i = 0; i < line; ++i)
	{
		fgets(buf, 256, fp_tmp);
	}

	for(int i = 0; i < 10; ++i)
	{
		fgets(buf, 256, fp_tmp);
		puts(buf);
	}
	getchar();
	getchar();
	getchar();
}
